<extend name="Base/common"/>
<block name="style">
    <link href="__CSS__/jxgl.css" type="text/css" rel="stylesheet">
</block>
<block name="header">
    <include file="Public/_nav"/>
</block>
<block name="body">
        <!-- 左侧菜start -->
        <div class="col-xs-2">
            <div class="clearfix"></div>

             <div class="common_block_border">                
                <div class="content ">
                <include file="Public/sidebar"  />
                </div>
            </div>
        </div>
        <!-- 左侧菜end -->

    <!-- 右侧内容开始 -->
    <div class="col-xs-10">
    <div class="common_block_border">
    <ul class="nav nav-tabs">
   <li><a href="{:U('Lunwen/uploadLunwen')}">论文上传</a></li>
   <li><a href="{:U('Lunwen/viewLunwen')}">浏览论文</a></li>
   <li class="active"><a href="{:U('Lunwen/editLunwen','id='.$data['id'])}">编辑论文</a></li>
   </ul>
     <!-- 登记表单start -->
     <div class="right_box">
                <legend><span style="color:#CC4444"> 学科论文信息修改 : </span>
           
                </legend>
                
        <form class="form-horizontal form-condensed" method='post' enctype="multipart/form-data" id="formlunwen" name="formlunwen"  action="" role="form">
        <!-- {:U('Index/addHomework')} -->
           <div class="form-group ">
          <label class="col-sm-2 control-lable text-right" for="subject">学科类别</label>
            <div class="col-sm-4">
                  <select name="subject" id="subject" class="form-control">
                      <option <if condition="$data.subject eq '语文' "> selected </if> >语文</option>
                      <option <if condition="$data.subject eq '数学' ">selected</if> >数学</option>
                      <option <if condition="$data['subject'] eq '英语' ">selected</if> >英语</option>
                      <option <if condition="$data['subject'] eq '科学' ">selected</if> >科学</option>
                      <option <if condition="$data['subject'] eq '综合' ">selected</if> >综合</option>
                      <option <if condition="$data['subject'] eq '其他' ">selected</if> >其他</option>  
                  </select>
              </div>
                 <label class="col-sm-1 control-lable text-right">教 师</label>            
               <div class="col-sm-4"> <input class="form-control" type="text"  name="teacher" value="{$data.teacher}" > </div>   
        　　</div>
            <div class="form-group">
                 <label class="col-sm-2 control-lable text-right">文章标题</label> 
                 <div class="col-sm-9">           
                <input class="form-control" type="text"  name="title" value="{$data.title}" > 
                </div>   
        　　</div>
<!-- 
             <div class="form-group">
               <label class="col-sm-2 control-lable text-right">上传文件 </label>
                 <div class="col-sm-9">
                     <div class="input-group">
                    <input id="lefile" class="form-control" type="file" name="upfile" style="display:none">               
                    <input id="files-text" class="form-control" type="text"  onclick="$('input[id=lefile]').click();">
                    <span class="input-group-btn">
                      <button class="btn btn-primary" type="button" onclick="$('input[id=lefile]').click();"><i class="icon icon-folder-open"> </i>    浏览文件</button>
                    </span>
                    </div>
                 </div>
               </div>
            <script type="text/javascript">
            $('input[id=lefile]').change(function() {
            $('#files-text').val($(this).val());
            });
            </script> -->
             <div class="form-group">
            <label class="col-sm-2 ">论文摘要</label><div class="col-sm-10 "><span class="check-tips">（请将论文摘要复制到下面框内,然后点击下面的上传按钮完成提交。）</span></div>
            <div class="col-sm-offset-1 col-sm-10" >
               <textarea name="abstract" class="form-control" rows="8"> {$data.abstract} </textarea>              
            </div>
            </div>
    

        <div class="form-group"> 
          <div class="col-sm-offset-1 col-sm-10">
          <input type="hidden" name="id" value="{$data.id}">
            <button type="submit" class="btn btn-primary">保存修改</button>
            <button type="button" class="btn btn-danger">取消</button> 
          </div> 
        </div>
      </form> 
      <div class="right_box text-right"> 
      &nbsp; 
      </div> 
      </div>

        <!-- 右侧内容结束 -->  
      </div>   


</block>

